<template>
  <a-layout-sider width="200" style="background: #fff">
    <a-menu
        mode="inline"
        :default-selected-keys="[]"
        :default-open-keys="[]"
        :style="{ height: '100%', borderRight: 0 }"
    >
<!--      TODO:点击面包屑首页，左侧侧边栏按钮高亮未改变-->
      <a-sub-menu key="sub1">
        <span slot="title"><a-icon type="user"/>基本信息</span>
        <a-menu-item key="1" @click="testMain('/index/adminPatient')">
          患者信息
        </a-menu-item>
        <a-menu-item key="2" @click="testMain('/index/adminDoctor')">
          医生信息
        </a-menu-item>
        <a-menu-item key="3" @click="testMain('/adminSignDoctor')">
          签约医生
        </a-menu-item>
        <a-menu-item key="4" @click="testMain('/adminPatient')">
          option4
        </a-menu-item>
      </a-sub-menu>
      <a-sub-menu key="sub2">
        <span slot="title"><a-icon type="laptop"/>subnav 2</span>
        <a-menu-item key="5" @click="testMain('/adminPatient')">
          option5
        </a-menu-item>
        <a-menu-item key="6" @click="testMain('/adminPatient')">
          option6
        </a-menu-item>
        <a-menu-item key="7" @click="testMain('/adminPatient')">
          option7
        </a-menu-item>
        <a-menu-item key="8" @click="testMain('/adminPatient')">
          option8
        </a-menu-item>
      </a-sub-menu>
      <a-sub-menu key="sub3">
        <span slot="title"><a-icon type="notification"/>subnav 3</span>
        <a-menu-item key="9" @click="testMain('/adminPatient')">
          option9
        </a-menu-item>
        <a-menu-item key="10" @click="testMain('/adminPatient')">
          option10
        </a-menu-item>
        <a-menu-item key="11" @click="testMain('/adminPatient')">
          option11
        </a-menu-item>
        <a-menu-item key="12" @click="testMain('/adminPatient')">
          option12
        </a-menu-item>
      </a-sub-menu>
    </a-menu>
  </a-layout-sider>
</template>
<script>
export default {
  name: 'Menu',
  methods: {
    testMain(path) {
      this.$emit('showContent', path)
    }
  }
};
</script>
